import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      redirect: "/zbjs",
      children: [
        {
          path: "zbjs",
          name: "zbjs",
          component: () => import("../views/Zbjs.vue")//招标检索
        },
        {
          path: "qyjs",
          name: "qyjs",
          component: () => import("../views/Qyjs.vue")//企业检索
        },
        {
          path: "cgdwjs",
          name: "cgdwjs",
          component: () => import("../views/Cgdwjs.vue")//采购单位检索
        },
        {
          path: "mycollection",
          name: "Mycollection",
          component: () => import("../views/Mycollection.vue")//品牌价格对比
        }
      ]
    },
    {
      path: "/zbdesc",
      name: "Zbdesc",
      component: () => import("../views/Zbjsdesc.vue")//招标检索 详情
    },
    {
      path: "/qyjsdesc",
      name: "Qyjsdesc",
      component: () => import("../views/Qyjsdesc.vue")//招标检索 详情
    },
    {
      path: "/cgdwjsdesc",
      name: "Cgdwjsdesc",
      component: () => import("../views/Cgdwjsdesc.vue")//采购检索 详情
    },
    {
      path: "/qyjezb",
      name: "Qyjezb",
      component: () => import("../views/Datafx/Qyjezb.vue")//区域价格占比
    },
    {
      path: "/qyslzb",
      name: "Qyslzb",
      component: () => import("../views/Datafx/Qyslzb.vue")//区域数量占比
    },
    {
      path: "/qyjgdb",
      name: "Qyjgdb",
      component: () => import("../views/Datafx/Qyjgdb.vue")//区域价格对比
    },
    {
      path: "/ppjgdb",
      name: "Ppjgdb",
      component: () => import("../views/Datafx/Ppjgdb.vue")//品牌价格对比
    },
    
  ],
})

export default router
